package com.xingzhe.content.service;

import com.xingzhe.content.mapper.CourseTeacherMapper;
import com.xingzhe.content.model.po.CourseTeacher;

import java.util.List;

public interface CourseTeacherService {
    /**
     * 查询本课程的所有教师
     * @param courseId 课程id
     * @return 返回本课程所有教师
     */
    List<CourseTeacher> findAll(Long courseId);

    /**
     * 新增本课程的教师，或者修改本课程教师的信息
     * @param teacher 教师信息
     * @param companyId 机构id
     */
    void saveOrUpdateCourseTeacher(CourseTeacher teacher,Long companyId);

    /**
     * 删除本课程的教师
     * @param courseId 课程id
     * @param teacherId 教师id
     * @param companyId 机构id
     */
    void deleteCourseTeacher(Long courseId,Long teacherId,Long companyId);
}
